public class School {
    public int pailiang;
    public int zhongliang;
    public String pingpai;
    public int mali;

    public void xinxi() {
        System.out.println("汽车发动机的排量是：" + this.pailiang + "\n重量是：" + this.zhongliang + "\n品牌是：" + pingpai + "\n马力是：" + mali);
    }

    public static void main(String[] args) {
        School in = new School();
        in.pailiang = 100;
        in.zhongliang = 100;
        in.pingpai = "大力";
        in.mali = 100;
        in.xinxi();
    }
}

